<?php
session_start();
if(!isset($_SESSION["username"]))
{
    echo "<script language=javascript>alert('登陆失效，请重新登陆');window.open('login.php','_top')</script>";
}
?>